package com.example.zhunongzonghe.beans;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDateTime;
import java.util.List;


@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="ZnFarmproduce对象", description="")
public class ZnFarmproduceBean implements Serializable {
    private static final long serialVersionUID=1L;
    /**
     * 农产品表
     */
    private Integer farmId;
    /**
     * 产品名
     */
    private String farmName;
    /**
     * 价格
     */
    private BigDecimal price;
    /**
     * 产品简介
     */
    private String farmIntro;

    private Integer status;
    /**
     * 产品图片
     */
    private String shopPicture;

    /**
     * 销量
     */
    private BigInteger salesVolume;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

    /**
     * 分类表
     */
    private Integer sortId;
    /**
     * 分类详情
     */
    private String sortContent;


    private boolean collectOrNot;//是否收藏
    private Integer CollectCount;//收藏数量

    /**
     * 规格
     */
    private List<ZnFarmSpecificationBean> specificationBeans;
}
